<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>后台管理</title>
		<link rel="stylesheet" type="text/css" href="../../backstagestatic/admin/layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../backstagestatic/admin/css/admin.css"/>
	</head>
	<body>
		<form id="form1">
			<input type="hidden" name="">
		</form>
		<div class="wrap-container welcome-container">
			<div class="row">
				<div class="welcome-left-container col-lg-9">
					<div class="data-show">
						<ul class="clearfix">
							<li class="col-sm-12 col-md-4 col-xs-12">
								<a href="javascript:;" class="clearfix">
									<div class="icon-bg bg-org f-l">										
										<span class="iconfont">&#xe602;</span>
									</div>
									<div class="right-text-con">
										<p class="name">书本数</p>
										<p id="bookN">数据&nbsp;&nbsp;
											<!--<span class="color-org">89</span>-->
										</p>
									</div>
								</a>
							</li><p></p>
							<li class="col-sm-12 col-md-4 col-xs-12">
								<a href="javascript:;" class="clearfix">
									<div class="icon-bg bg-blue f-l">
										<span class="iconfont">&#xe606;</span>
									</div>
									<div class="right-text-con">
										<p class="name">订单数</p>
										<p id="orderN">数据&nbsp;&nbsp;
											<!--<span class="color-blue">189</span>-->
										</p>
									</div>
								</a>
							</li>
						
						</ul>
					</div>
			</div>
		</div>
		</div>
        <script src="../../js/jquery.min.js"></script>
		<script src="../../backstagestatic/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
            layui.use('element', function(){
                $(document).ready(function(){
                    $.ajax({
                        type: "POST",
                        url: "/clerk" ,//url
                        data: $('#form1').serialize(),
                        dataType: "json",
                        success: function(data){
                            var numbers=data.number;
                            var BookNum="<span class='color-org'>"+numbers.bookNum+"</span>";
                            var OrderNum="<span class='color-blue'>"+numbers.orderNum+"</span>";
                            $("#bookN").append(BookNum);
                            $("#orderN").append(OrderNum);
                        }
                    });

                });
            });
		</script>

	</body>
</html>
